/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.views;

import com.insurance.cis.utils.CisConstants;
import com.insurance.cis.utils.JPanelLoader;
import com.insurance.cis.utils.MessageDialogUtils;
import java.io.File;
import javax.swing.JDialog;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.UIManager;

/**
 *
 * @author TruongLQ
 */
public class MainJFrameView extends javax.swing.JFrame {

    /**
     * Creates new form MainJFrameView
     */
    public MainJFrameView() {
        initComponents();
        this.setSize(900, 600);
        this.setResizable(false);
        this.setLocationRelativeTo(getRootPane());
        mnLogin.setEnabled(true);
        mnLogout.setEnabled(false);
        disableAllMenus();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainJpnl = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        btnWelcomeHelp = new javax.swing.JButton();
        btnWelcomeLogin = new javax.swing.JButton();
        menuBar = new javax.swing.JMenuBar();
        fileMenu = new javax.swing.JMenu();
        mnDbConfigure = new javax.swing.JMenuItem();
        separator = new javax.swing.JPopupMenu.Separator();
        mnLogin = new javax.swing.JMenuItem();
        mnLogout = new javax.swing.JMenuItem();
        separator1 = new javax.swing.JPopupMenu.Separator();
        mnExit = new javax.swing.JMenuItem();
        mnCampaign = new javax.swing.JMenu();
        mnCampaignMaster = new javax.swing.JMenuItem();
        mnEstimatedCampaign = new javax.swing.JMenuItem();
        mnActualCampaign = new javax.swing.JMenuItem();
        mnProduct = new javax.swing.JMenu();
        mnProductMaster = new javax.swing.JMenuItem();
        mnStatistics = new javax.swing.JMenu();
        mnStatisticsReport = new javax.swing.JMenuItem();
        mnAdministrator = new javax.swing.JMenu();
        mnEmployeeManagement = new javax.swing.JMenuItem();
        helpMenu = new javax.swing.JMenu();
        mnHelpUserGuide = new javax.swing.JMenuItem();
        mnHelpDevGuide = new javax.swing.JMenuItem();
        mnHelpAbout = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Compaign Information System");
        setMinimumSize(new java.awt.Dimension(900, 500));
        setPreferredSize(new java.awt.Dimension(900, 500));
        setResizable(false);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        mainJpnl.setToolTipText("");
        mainJpnl.setPreferredSize(new java.awt.Dimension(900, 600));
        mainJpnl.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel1.setText("Campaign Information System");
        mainJpnl.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 50, -1, -1));

        jLabel2.setText("1. Want to know about how the system work? Click here to get more details");
        mainJpnl.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 360, -1, -1));

        jLabel3.setText("2. Click here to login to the system");
        mainJpnl.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 380, -1, -1));

        jTextArea1.setEditable(false);
        jTextArea1.setColumns(20);
        jTextArea1.setLineWrap(true);
        jTextArea1.setRows(5);
        jTextArea1.setText("An insurance company wants to start campaigns for its new products to be sold to the prospective customers. Campaign means advertising of the products through channels like Tele marketing, letters, signboards, TV Commercials, etc. There are different campaigns for different products and there is a specific period for each campaign.\n\nBefore the campaign starts, estimates are made on sales to be achieved, budget\nallocation for each campaign and variance allowed (%) both for sales and budget.\nWhen the actual data is captured, the actual variance (%) is calculated. The\ndifference between the actual and the estimated variance gives the insurance\ncompany an insight into their estimation and it helps in making strategic decisions\nabout budgets and campaign periods.");
        jTextArea1.setWrapStyleWord(true);
        jScrollPane1.setViewportView(jTextArea1);

        mainJpnl.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 120, 690, 220));

        btnWelcomeHelp.setText("Help");
        btnWelcomeHelp.setMaximumSize(new java.awt.Dimension(57, 23));
        btnWelcomeHelp.setMinimumSize(new java.awt.Dimension(57, 23));
        btnWelcomeHelp.setPreferredSize(new java.awt.Dimension(57, 23));
        btnWelcomeHelp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnWelcomeHelpActionPerformed(evt);
            }
        });
        mainJpnl.add(btnWelcomeHelp, new org.netbeans.lib.awtextra.AbsoluteConstraints(640, 350, 90, -1));

        btnWelcomeLogin.setText("Login");
        btnWelcomeLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnWelcomeLoginActionPerformed(evt);
            }
        });
        mainJpnl.add(btnWelcomeLogin, new org.netbeans.lib.awtextra.AbsoluteConstraints(640, 380, 90, -1));

        getContentPane().add(mainJpnl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 880, 540));

        fileMenu.setText("File");

        mnDbConfigure.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));
        mnDbConfigure.setText("DB configure");
        mnDbConfigure.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnDbConfigureActionPerformed(evt);
            }
        });
        fileMenu.add(mnDbConfigure);
        fileMenu.add(separator);

        mnLogin.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
        mnLogin.setText("Login");
        mnLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnLoginActionPerformed(evt);
            }
        });
        fileMenu.add(mnLogin);

        mnLogout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        mnLogout.setText("Logout");
        mnLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnLogoutActionPerformed(evt);
            }
        });
        fileMenu.add(mnLogout);
        fileMenu.add(separator1);

        mnExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        mnExit.setText("Exit");
        mnExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnExitActionPerformed(evt);
            }
        });
        fileMenu.add(mnExit);

        menuBar.add(fileMenu);

        mnCampaign.setText("Campaign");

        mnCampaignMaster.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnCampaignMaster.setText("Campaign master");
        mnCampaignMaster.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCampaignMasterActionPerformed(evt);
            }
        });
        mnCampaign.add(mnCampaignMaster);

        mnEstimatedCampaign.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnEstimatedCampaign.setText("Estimate campaign");
        mnEstimatedCampaign.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnEstimatedCampaignActionPerformed(evt);
            }
        });
        mnCampaign.add(mnEstimatedCampaign);

        mnActualCampaign.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnActualCampaign.setText("Actual campaign");
        mnActualCampaign.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnActualCampaignActionPerformed(evt);
            }
        });
        mnCampaign.add(mnActualCampaign);

        menuBar.add(mnCampaign);

        mnProduct.setText("Product");

        mnProductMaster.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnProductMaster.setText("Product master");
        mnProductMaster.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnProductMasterActionPerformed(evt);
            }
        });
        mnProduct.add(mnProductMaster);

        menuBar.add(mnProduct);

        mnStatistics.setText("Statistics");

        mnStatisticsReport.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnStatisticsReport.setText("Statistics report");
        mnStatisticsReport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnStatisticsReportActionPerformed(evt);
            }
        });
        mnStatistics.add(mnStatisticsReport);

        menuBar.add(mnStatistics);

        mnAdministrator.setText("Administrator");

        mnEmployeeManagement.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnEmployeeManagement.setText("Employee management");
        mnEmployeeManagement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnEmployeeManagementActionPerformed(evt);
            }
        });
        mnAdministrator.add(mnEmployeeManagement);

        menuBar.add(mnAdministrator);

        helpMenu.setText("Help");

        mnHelpUserGuide.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnHelpUserGuide.setText("User guide documentation");
        mnHelpUserGuide.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnHelpUserGuideActionPerformed(evt);
            }
        });
        helpMenu.add(mnHelpUserGuide);

        mnHelpDevGuide.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnHelpDevGuide.setText("Developer guide documentation");
        mnHelpDevGuide.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnHelpDevGuideActionPerformed(evt);
            }
        });
        helpMenu.add(mnHelpDevGuide);

        mnHelpAbout.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.SHIFT_MASK));
        mnHelpAbout.setText("About CIS");
        mnHelpAbout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnHelpAboutActionPerformed(evt);
            }
        });
        helpMenu.add(mnHelpAbout);

        menuBar.add(helpMenu);

        setJMenuBar(menuBar);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-900)/2, (screenSize.height-600)/2, 900, 600);
    }// </editor-fold>//GEN-END:initComponents

    private void mnDbConfigureActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnDbConfigureActionPerformed
        dbConfigJpnl.clearAllTextFields();
        JPanelLoader.loadJpanel(mainJpnl, dbConfigJpnl);
    }//GEN-LAST:event_mnDbConfigureActionPerformed

    private void mnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnLoginActionPerformed
        loginJpnl.clearAllTextFields();
        JPanelLoader.loadJpanel(mainJpnl, loginJpnl);
    }//GEN-LAST:event_mnLoginActionPerformed

    private void mnLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnLogoutActionPerformed
        if (MessageDialogUtils.dialogQuestion(this,
                "Do you want to logout?",
                JOptionPane.YES_NO_OPTION) != JOptionPane.NO_OPTION) {
            this.dispose();
            MainJFrameView.main(null);
        }
    }//GEN-LAST:event_mnLogoutActionPerformed

    private void mnExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnExitActionPerformed
        this.dispose();
    }//GEN-LAST:event_mnExitActionPerformed

    private void mnProductMasterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnProductMasterActionPerformed
        productMasterJpnl.clearAllTextFields();        
        JPanelLoader.loadJpanel(mainJpnl, productMasterJpnl);
    }//GEN-LAST:event_mnProductMasterActionPerformed

    private void mnCampaignMasterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCampaignMasterActionPerformed
        campaignMasterJpnl.clearAllTextFields();
        JPanelLoader.loadJpanel(mainJpnl, campaignMasterJpnl);
    }//GEN-LAST:event_mnCampaignMasterActionPerformed

    private void mnEstimatedCampaignActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnEstimatedCampaignActionPerformed
        estimatedCampaignJpnl.clearAllFields();
        JPanelLoader.loadJpanel(mainJpnl, estimatedCampaignJpnl);
    }//GEN-LAST:event_mnEstimatedCampaignActionPerformed

    private void mnActualCampaignActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnActualCampaignActionPerformed
        actualCampaignJpnl.clearAllFields();
        JPanelLoader.loadJpanel(mainJpnl, actualCampaignJpnl);
    }//GEN-LAST:event_mnActualCampaignActionPerformed

    private void mnHelpUserGuideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnHelpUserGuideActionPerformed
        JPanelLoader.loadJpanel(mainJpnl, helpUserGuideJpnl);
    }//GEN-LAST:event_mnHelpUserGuideActionPerformed

    private void mnHelpAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnHelpAboutActionPerformed
        HelpAboutJDialogView helpDialog = new HelpAboutJDialogView(this, true);
        helpDialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        helpDialog.setVisible(true);
    }//GEN-LAST:event_mnHelpAboutActionPerformed

    private void mnStatisticsReportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnStatisticsReportActionPerformed
        statisticsReportJpnl.clearAllTextFields();
        JPanelLoader.loadJpanel(mainJpnl, statisticsReportJpnl);
    }//GEN-LAST:event_mnStatisticsReportActionPerformed

    private void mnEmployeeManagementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnEmployeeManagementActionPerformed
        JPanelLoader.loadJpanel(mainJpnl, empManagementJpnl);
    }//GEN-LAST:event_mnEmployeeManagementActionPerformed

    private void btnWelcomeHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnWelcomeHelpActionPerformed
        mnHelpUserGuideActionPerformed(evt);
    }//GEN-LAST:event_btnWelcomeHelpActionPerformed

    private void btnWelcomeLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnWelcomeLoginActionPerformed
        mnLoginActionPerformed(evt);
    }//GEN-LAST:event_btnWelcomeLoginActionPerformed

    private void mnHelpDevGuideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnHelpDevGuideActionPerformed
        JPanelLoader.loadJpanel(mainJpnl, helpDevGuideJpnl);
    }//GEN-LAST:event_mnHelpDevGuideActionPerformed

    protected final void disableAllMenus() {
        mnCampaign.setEnabled(false);
        mnCampaignMaster.setEnabled(false);
        mnEstimatedCampaign.setEnabled(false);
        mnActualCampaign.setEnabled(false);

        mnProduct.setEnabled(false);
        mnProductMaster.setEnabled(false);

        mnStatistics.setEnabled(false);
        mnStatisticsReport.setEnabled(false);

        mnAdministrator.setEnabled(false);
        mnEmployeeManagement.setEnabled(false);
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MainJFrameView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MainJFrameView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MainJFrameView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MainJFrameView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new MainJFrameView().setVisible(true);
            }
        });
    }
    private File helpUserGuideFile = new File("help/"+CisConstants.USER_GUIDE_HTML);
    private File helpDevGuideFile = new File("help/"+CisConstants.DEVELOPER_GUIDE_HTML);
    // declare modules
    private DbConfigurationJPanelView dbConfigJpnl = new DbConfigurationJPanelView(this);
    private LoginJPanelView loginJpnl = new LoginJPanelView(this);
    private HelpUserGuideJPanelView helpUserGuideJpnl = new HelpUserGuideJPanelView(this, helpUserGuideFile);
    private HelpDevGuideJPanelView helpDevGuideJpnl = new HelpDevGuideJPanelView(this, helpDevGuideFile);
    private ChangePasswordJPanelView changePasswordJpnl = new ChangePasswordJPanelView(this);
    private EmployeeManagementJPanelView empManagementJpnl = null;
    private CampaignMasterJPanelView campaignMasterJpnl = null;
    private EstimatedCampaignJPanelView estimatedCampaignJpnl = null;
    private ActualCampaignJPanelView actualCampaignJpnl = null;
    private ProductMasterJPanelView productMasterJpnl = null;
    private StatisticsReportJPanelView statisticsReportJpnl = null;
    
    public void loadAllScreens() {
        campaignMasterJpnl = new CampaignMasterJPanelView(this);
        estimatedCampaignJpnl = new EstimatedCampaignJPanelView(this);
        actualCampaignJpnl = new ActualCampaignJPanelView(this);
        productMasterJpnl = new ProductMasterJPanelView(this);
        statisticsReportJpnl = new StatisticsReportJPanelView(this);
        empManagementJpnl = new EmployeeManagementJPanelView(this);
        changePasswordJpnl = new ChangePasswordJPanelView(this);
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnWelcomeHelp;
    private javax.swing.JButton btnWelcomeLogin;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JMenu helpMenu;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JPanel mainJpnl;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JMenuItem mnActualCampaign;
    private javax.swing.JMenu mnAdministrator;
    private javax.swing.JMenu mnCampaign;
    private javax.swing.JMenuItem mnCampaignMaster;
    private javax.swing.JMenuItem mnDbConfigure;
    private javax.swing.JMenuItem mnEmployeeManagement;
    private javax.swing.JMenuItem mnEstimatedCampaign;
    private javax.swing.JMenuItem mnExit;
    private javax.swing.JMenuItem mnHelpAbout;
    private javax.swing.JMenuItem mnHelpDevGuide;
    private javax.swing.JMenuItem mnHelpUserGuide;
    private javax.swing.JMenuItem mnLogin;
    private javax.swing.JMenuItem mnLogout;
    private javax.swing.JMenu mnProduct;
    private javax.swing.JMenuItem mnProductMaster;
    private javax.swing.JMenu mnStatistics;
    private javax.swing.JMenuItem mnStatisticsReport;
    private javax.swing.JPopupMenu.Separator separator;
    private javax.swing.JPopupMenu.Separator separator1;
    // End of variables declaration//GEN-END:variables

    public JMenuItem getMnActualCampaign() {
        return mnActualCampaign;
    }

    public JMenu getMnAdministrator() {
        return mnAdministrator;
    }

    public JMenu getMnCampaign() {
        return mnCampaign;
    }

    public JMenuItem getMnCampaignMaster() {
        return mnCampaignMaster;
    }

    public JMenuItem getMnDbConfigure() {
        return mnDbConfigure;
    }

    public JMenuItem getMnEstimatedCampaign() {
        return mnEstimatedCampaign;
    }

    public JMenuItem getMnExit() {
        return mnExit;
    }

    public JMenuItem getMnHelpAbout() {
        return mnHelpAbout;
    }

    public JMenuItem getMnHelpContents() {
        return mnHelpUserGuide;
    }

    public JMenuItem getMnLogin() {
        return mnLogin;
    }

    public JMenuItem getMnLogout() {
        return mnLogout;
    }

    public JMenu getMnProduct() {
        return mnProduct;
    }

    public JMenuItem getMnProductMaster() {
        return mnProductMaster;
    }

    public JMenu getMnStatistics() {
        return mnStatistics;
    }

    public DbConfigurationJPanelView getDbConfigJpnl() {
        return dbConfigJpnl;
    }

    public LoginJPanelView getLoginJpnl() {
        return loginJpnl;
    }

    public CampaignMasterJPanelView getCampaignMasterJpnl() {
        return campaignMasterJpnl;
    }

    public EstimatedCampaignJPanelView getEstimatedCampaignJpnl() {
        return estimatedCampaignJpnl;
    }

    public ActualCampaignJPanelView getActualCampaignJpnl() {
        return actualCampaignJpnl;
    }

    public ProductMasterJPanelView getProductMasterJpnl() {
        return productMasterJpnl;
    }

    public StatisticsReportJPanelView getStatisticsJpnl() {
        return statisticsReportJpnl;
    }

    public HelpUserGuideJPanelView getHelpContentsJpnl() {
        return helpUserGuideJpnl;
    }

    public EmployeeManagementJPanelView getAdminJpnl() {
        return empManagementJpnl;
    }

    public JPanel getMainJpnl() {
        return mainJpnl;
    }

    public JMenuItem getMnEmployeeManagement() {
        return mnEmployeeManagement;
    }

    public JMenuItem getMnStatisticsReport() {
        return mnStatisticsReport;
    }

    public EmployeeManagementJPanelView getEmpManagementJpnl() {
        return empManagementJpnl;
    }

    public ChangePasswordJPanelView getChangePasswordJpnl() {
        return changePasswordJpnl;
    }
}
